package com.huawei.translate.model;

import javax.persistence.Entity;

@Entity(name = "token")
public class AccessToken extends BaseEntity {

    private String appKey;

    private String appSecret;

    private String salt;

    private long applyTime;

    public AccessToken() {
    }

    public AccessToken(String appSecret, String salt, long applyTime) {
        this.appSecret = appSecret;
        this.salt = salt;
        this.applyTime = applyTime;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public long getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(long applyTime) {
        this.applyTime = applyTime;
    }
}
